﻿using System;
using System.Collections.Generic;
using System.Web;
using PayRoller.Code;
using System.Web.SessionState;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using HySoft.Cash.Business;
using HySoft.Cash.Structure;
using System.Configuration;
using System.Web.Profile;
using System.Web.UI;

namespace PayRoller.Manage
{
    public class LogOut : Page, IRequiresSessionState
    {
        // Fields
        protected HtmlForm form1;

        // Methods
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Response.Cookies["UserSid"].Value = null;
            base.Request.Cookies.Clear();
            this.Session.Clear();
            base.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>window.location='index.aspx';</script>");
        }

        // Properties
        protected HttpApplication ApplicationInstance
        {
            get
            {
                return this.Context.ApplicationInstance;
            }
        }

        protected DefaultProfile Profile
        {
            get
            {
                return (DefaultProfile)this.Context.Profile;
            }
        }
    }

}
